home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
theLifeArk.swf
/
scripts
/
DefineSprite_6
/
frame_1
/
DoAction.as
Wrap
Text File
|
2011-09-19
|
783b
|
36 lines
function flash_loading(x, T, A)
{
var _loc1_ = 3.141592653589793 / T * x;
return A * Math.sin(_loc1_);
}
_root.stop();
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
_X = Stage.width / 2;
_Y = Stage.height / 2 - 30;
mLogo._alpha = 0;
mLoading._alpha = 0;
var sDownload = "";
onEnterFrame = function()
{
var _loc2_ = int(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
if(_loc2_ == 100)
{
if(_root._mochiad instanceof MovieClip != true)
{
_root.play();
}
}
if(mLogo._alpha < 100)
{
mLogo._alpha += 5;
}
else
{
mLogo._alpha = 100;
sDownload = _loc2_ + " %";
mLoading._alpha = Math.abs(flash_loading(getTimer(),800,100));
}
};